package com.zdtech.action;

import javax.annotation.Resource;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;
import com.zdtech.common.DataResult;
import com.zdtech.entity.TUser;
import com.zdtech.service.BaseSerive;

public class EditUserAction extends ActionSupport{
	
	private TUser user;
	private DataResult<TUser> dataResult = new DataResult<>();
	@Resource
	private BaseSerive baseSerive;
	
	public String execute() throws Exception {
		baseSerive.editUser(user);
		dataResult.setSuccess(true);
		dataResult.setMessage("修改成功");
		return Action.SUCCESS;
	}
	public TUser getUser() {
		return user;
	}
	public void setUser(TUser user) {
		this.user = user;
	}
	
}
